package com.swing.sky.common.basic;

import java.util.List;

public interface BasicLinkDAO<One, Two, Item> {
    int batchInsert(List<Item> items);
    int deleteItemByOneId(Long id);
    int batchDeleteItemByOneIds(Long[] ids);
    int deleteItemByTwoId(Long id);
    int batchDeleteItemByTwoIds(Long[] ids);
    int countItemByOneId(Long id);
    int countItemByTwoId(Long id);
    List<One> listOneByTwoId(Long id);
    List<One> listOneByTwoIds(Long[] ids);
    Long[] listOneIdsByTwoId(Long id);
    Long[] listOneIdsByTwoIds(Long[] ids);
    List<Two> listTwoByOneId(Long id);
    List<Two> listTwoByOneIds(Long[] ids);
    Long[] listTwoIdsByOneId(Long id);
    Long[] listTwoIdsByOneIds(Long[] ids);
}
